package org.dllwh.mybatis.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 把今天最好的表现当作明天最新的起点．．～
 * <p>
 * Today the best performance as tomorrow the newest starter!
 *
 * @ClassName SysAreaInfo
 * @Description 数据实体类
 * @Author: <a href="mailto:duleilewuhen@sina.com">独泪了无痕</a>
 * @Date 2025-04-17 22:18
 * @版本 V 1.0.1
 * @since JDK 17
 */
@Data
@TableName(value = "sys_china_area")
public class ChinaAreaEntity {
    @TableId(value = "id", type = IdType.AUTO) // 指定自增策略
    private Integer id;
    private String name;
    @TableField(value = "area_code", exist = true)
    private Long areaCode;
    private String level;
    @TableField(value = "parent_code", exist = true)
    private Long parentCode;
    @TableField(value = "city_code", exist = true)
    private Long cityCode;
    private String pinyin;
    private Double lng;
    private Double lat;
}